﻿@model VisaApp.Helper.PagedData<VisaApp.Models.EmailResModel>
           
          
<script type="text/javascript">
    $(document).ready(function () {
        $(".page-number").live("click", function () {
            var page = parseInt($(this).html());
            $.get("/Quantri/ListEmail?&page=" + page , function (data) {
                $("#DivListCate").html("");
                $("#DivListCate").html(data);
            });
        });
    });

</script>


<table width="100%">
    <tr>
        <th>
            Eamil
        </th>
        <th>
            ngày Goi
        </th>
    </tr>
    @if (Model.Data != null)
    {
        foreach (var item in Model.Data)
        {
            <tr>
                <td>
                    <span class="Cate-id" style="display:none;">@item.id</span>
                    <span class="spanNameCate">@item.Email </span>
                </td>
                <td>
                    @String.Format("{0:dd/MM/yyy HH:mm}", item.DateCreate)
                </td>
            </tr>
        }
    }
</table>
<table>
    <tr>
        <td colspan="3">
            @for (int m = 1; m <= Model.NumberOfPages; m++)
            {
                if (m == Model.CurrentPage)
                {
                <a class="page-number-Current" href="javascript:void(0);">@m</a>
                }
                else
                {
                <a class="page-number" href="javascript:void(0);">@m</a>
                }
            }
        </td>
    </tr>
</table>

